//
//  CNCarView.h
//  BeeQuick_19
//
//  Created by 张旭峰 on 16/9/23.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CNkindModel.h"
#import "CNdetailsModel.h"

@class CNCarView;
@protocol CarViewDelegate <NSObject>
@optional
-(void)increaseWithModel:(CNdetailsModel *)model;
-(void)decreaseWithModel:(CNdetailsModel *)model;
@end
@interface CNCarView : UIView
// 商品的数量
@property (nonatomic, assign) NSInteger count;
// 商品是增加还是减少
@property (nonatomic, assign) BOOL isIncrease;
// 动画开始的起点
@property (assign, nonatomic) CGPoint startP;
//详情模型
@property (strong,nonatomic) CNdetailsModel* model;

@property (strong,nonatomic) id<CarViewDelegate> delegate;

+ (instancetype)bottomCarView;
@end
